<?php

namespace Sharks\Core\Http\View;

use Sharks\Core\Http\Response;
use Sharks\Core\Support\Base\DefValue;
use Sharks\Core\Support\Base\Arr;

class StatusView extends View {

	private $code;
	private $msg;

	public function __construct($code, $msg = null) {
		$this->code = $code;
		$this->msg = $msg;
	}

    public function render(Response $response) {
    	$response->status($this->code, $this->msg);
    }
}